package com.xq.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xq.entity.TbUser;
import com.xq.vo.TbUserVo;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

/**
 * 用户表(TbUser)表服务接口
 *
 * @author makejava
 * @since 2020-07-19 16:19:22
 */
public interface TbUserService extends IService<TbUser> {
    /**
     * 带条件的分页查询
     * @param current
     * @param size
     * @param userVo
     * @return
     */
    Page<TbUser> findByPageOrTbUserVo(Integer current, Integer size, TbUserVo userVo);

    /**
     * 登录操作
     * @param username
     * @param password
     * @return
     */
    String loginUser(String username,String password);

    /**
     * 增加操作
     */
    Integer instUser(TbUser user);

    /** 禁用操作 */
    Boolean updStatusById(Integer id,Integer status);

    /** 导出信息 */
    void download(HttpServletResponse response,TbUserVo tbUserVo) throws IOException;
}